<template>
    <div class="playList">
        <div class="listTitle"></div>
        <van-card
                v-for="it in fmList" :key="it.id"
                :desc="it.anchors"
                :title="it.title"
                :thumb="it.img"
                >
                <template #tags>
                    <div class="icon">
                        <van-icon name="weapp-nav" size="20" />
                    </div>
                </template>
        </van-card>
    </div>
</template>

<script setup lang="ts">
import {ref,onMounted,defineProps} from 'vue'
// import ajax from '../apis/Ajax';
//接受父组件传过来的列表
defineProps({
    fmList:{
        type: Array,
        default:[]
    }
})

</script>

<style lang="less">
@import '../styles/common.less';
.playList {
    .van-card {
        padding-top: 1.3rem;
    }
    .van-card__title {
            font-size: 1.6rem;
            margin: 1rem 0;
            .tit();
        }
        .van-card__desc {
            font-size: 1.4rem;
        }
        .icon {
            position: absolute;
            right: 1rem;
            color: #a3a4a6;
        }
}
</style>